package com.koron.bean.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author qingfeng
 * @description: 附件实体类
 * @date 2021/4/26 10:04
 */
@Data
@ApiModel("附件")
public class Attachment {

    @ApiModelProperty(value = "主键", position = 1)
    private String id;

    @ApiModelProperty(value = "附件名称", position = 2)
    private String name;

    @ApiModelProperty(value = "文件大小", position = 3)
    private Double size;

    @ApiModelProperty(value = "附件类型", position = 4)
    private String extension;

    @ApiModelProperty(value = "附件url", position = 5)
    private String path;

    @ApiModelProperty(value = "业务id", position = 6)
    private String businessId;

    @ApiModelProperty(value = "上传人账号", position = 7)
    private String createBy;

    @ApiModelProperty(value = "上传人姓名", position = 8)
    private String createByName;

    @ApiModelProperty(value = "上传时间", position = 9)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "业务类型", position = 10)
    private String type;

    @ApiModelProperty(value = "子业务id", position = 11)
    private String subBusinessId;

    @ApiModelProperty(value = "图片base64压缩地址")
    private String imgUrl;

}
